package com.juc.juc_project.threadbase.join;

public class Test {
	public static void main(String[] args) throws InterruptedException {

		Thread t1=new Thread(new Demo(), "线程1");
		Thread t2=new Thread(new Demo2(), "线程2");
		t1.join();
		t1.start();
		
		t2.start();
	}
}
